package com.jiangjiang.eshop.auth.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.auth.domain.AccountEntity;
import com.jiangjiang.eshop.auth.dto.AccountDTO;
import org.mapstruct.Mapper;

/**
 * @ClassName AccountConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/7 5:35
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface AccountConvert {

    Page<AccountDTO> convertAccountPage2DTO(Page<AccountEntity> queryForPage);

    AccountDTO convertEntity2DTO(AccountEntity queryAccountById);

    AccountEntity convertDTO2Entity(AccountDTO account);
}
